import { httpGet, httpPost } from "@/utils/request";

//获取小程序登录信息
export const fetchWechatAuth = (data) => {
  return httpGet({
    url: "/user/wechat/xcxAuth",
    data: data,
  });
};

//注册小程序
export const fakeStudentWithWechat = (data) => {
  return httpPost({
    url: "/user/wechat/bindStudentWithWechat",
    data: data,
  });
};

//获取手机验证码
export const fakeSendSmsCode = (data) => {
  return httpPost({
    url: "/common/sms/sendSmsCode",
    data: data,
  });
};

//修改用户信息
export const fakeEditUserInfo = (data) => {
  return httpPost({
    url: "/user/info/editUserInfo",
    data: data,
  });
};
////获取微信解析手机号
export const fetchXchPhone = (data = {}) => {
  return httpGet({
    url: "/user/wechat/getXchPhone",
    data: data,
  });
};


//获取用户所有信息
export const fetchUserDetailSimpleInfo = (data = {}) => {
  return httpGet({
    url: "/auth/admin/getMyInfo",
    data: data,
  });
};
